DataSource for Entity Framework in WPF
C1.LiveLinq.LiveViews Namespace / View<T> Class / AttachView Method / AttachView<TResult>(Object,Func<View<T>,View<TResult>>) Method
The type of the elements in the subquery view.
A string uniquely specifying this subquery in the view to which it is attached. Can be any string. The only requirement is that different subqueries attached to the same view, if such exist, must have different subquery ids.
A function to obtain the attached subview from the view to which it is attached.

In This Topic
    AttachView<TResult>(Object,Func<View<T>,View<TResult>>) Method
    In This Topic
    Includes a subquery into the incremental maintenance mechanism of a view and uniquely identifies it among other subqueries of the same view.
    Syntax
    'Declaration
     
    Public Overloads Function AttachView(Of TResult)( _
       ByVal subqueryId As Object, _
       ByVal selector As Func(Of View(Of T),View(Of TResult)) _
    ) As View(Of TResult)

    Parameters

    subqueryId
    A string uniquely specifying this subquery in the view to which it is attached. Can be any string. The only requirement is that different subqueries attached to the same view, if such exist, must have different subquery ids.
    selector
    A function to obtain the attached subview from the view to which it is attached.

    Type Parameters

    TResult
    The type of the elements in the subquery view.

    Return Value

    The attached subview.
    Remarks

    This overload must be used if you have several subviews attached to the same view. The subqueryId can be any string as long as it is not repeated for two different subviews attached to the same view.

    See the other overload for the explanation of the AttachView method.

    See Also